/*    */ package hmc;
/*    */ 
/*    */ import java.awt.AlphaComposite;
/*    */ import java.awt.Color;
/*    */ import java.awt.Graphics2D;
/*    */ import java.awt.Image;
/*    */ import java.awt.SplashScreen;
/*    */ import java.io.PrintStream;
/*    */ import javax.swing.ImageIcon;
/*    */ 
/*    */ public class HazellSplashScreen
/*    */ {
/*    */   public static void renderFrame(Graphics2D g, Image frame)
/*    */   {
/* 45 */     g.setComposite(AlphaComposite.Clear);
/* 46 */     g.fillRect(0, 275, 200, 150);
/* 47 */     g.setPaintMode();
/* 48 */     g.setColor(Color.BLACK);
/* 49 */     g.drawImage(frame, 0, 275, 200, 150, null);
/*    */   }
/*    */ 
/*    */   public static void show()
/*    */   {
/* 58 */     String path = "Images/AlexLogo1.3timeline.";
/*    */ 
/* 62 */     SplashScreen splash = SplashScreen.getSplashScreen();
/* 63 */     if (splash == null) {
/* 64 */       System.out.println("SplashScreen.getSplashScreen() returned null");
/* 65 */       return;
/*    */     }
/*    */ 
/* 68 */     Graphics2D g = splash.createGraphics();
/*    */ 
/* 70 */     for (int i = 0; i < 48; i++)
/*    */     {
/* 72 */       String tempPath = path;
/* 73 */       tempPath = tempPath + (i + 1) + "";
/* 74 */       tempPath = tempPath + ".png";
/* 75 */       Image image = null;
/*    */ 
/* 77 */       image = new ImageIcon(tempPath).getImage();
/*    */ 
/* 79 */       if (image != null)
/*    */       {
/* 81 */         renderFrame(g, image);
/*    */       }
/*    */       else
/*    */       {
/* 85 */         System.out.printf("Error loading %s\n", new Object[] { tempPath });
/* 86 */         System.exit(-1);
/*    */       }
/* 88 */       splash.update();
/*    */       try
/*    */       {
/* 92 */         Thread.sleep(63L);
/*    */       }
/*    */       catch (InterruptedException interEx)
/*    */       {
/*    */       }
/*    */     }
/*    */ 
/* 99 */     splash.close();
/*    */   }
/*    */ }

/* Location:           F:\6-30-2012\Hazell\
 * Qualified Name:     hmc.HazellSplashScreen
 * JD-Core Version:    0.6.0
 */